<template>
  <div>
    
	
	<div class="navbar navbar-inverse">
		<div class="container">
			<div class="navbar-header">
				
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
				<a class="navbar-brand" href="">
					<img src="home/static/assets/images/logo.png" alt="Techro HTML5 template"></a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav pull-right mainNav">
					<li class="active"><a href="">Home</a></li>
								<li> <router-link to="/users-list">用户表</router-link>  </li><li> <router-link to="/chatmsg-list">聊天记录</router-link>  </li><li> <router-link to="/chatfile-list">聊天文件</router-link>  </li>
			<li><a href="javascript:;" @click="toAdmin">个人中心</a></li>
			

				</ul>
			</div>
			
		</div>
	</div>
	

<router-view/>

	
	
	
	
	
	

  </div>
</template>
<script>
  
export default {
  name:'Layout',
  data(){
    return {
    }
  },
  created(){
    this.$nextTick(()=>{
      location.href="/#/dashboard/"
    })
  },
  methods:{
    toAdmin(){
      this.goTo('/dashboard');
    },
    goTo(to) {
        this.$router.push(to)
      },
    },
    beforeDestroy(){
       this.removeFile('home/static/assets/css/bootstrap.min.css','css');
this.removeFile('home/static/assets/css/font-awesome.min.css','css');
this.removeFile('home/static/assets/css/bootstrap-theme.css','css');
this.removeFile('home/static/assets/css/da-slider.css','css');
this.removeFile('home/static/assets/css/style.css','css');
this.removeFile( 'home/static/assets/js/html5shiv.js','js');
this.removeFile( 'home/static/assets/js/respond.min.js','js');
this.removeFile( 'home/static/assets/js/modernizr-latest.js','js');
this.removeFile( 'http://ajax.useso.com/ajax/libs/jquery/1.10.2/jquery.min.js','js');
this.removeFile( 'http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js','js');
this.removeFile( 'home/static/assets/js/jquery.cslider.js','js');
this.removeFile( 'home/static/assets/js/custom.js','js');

    },
    mounted(){
      this.loadFile('home/static/assets/css/bootstrap.min.css','css');
this.loadFile('home/static/assets/css/font-awesome.min.css','css');
this.loadFile('home/static/assets/css/bootstrap-theme.css','css');
this.loadFile('home/static/assets/css/da-slider.css','css');
this.loadFile('home/static/assets/css/style.css','css');
this.loadFile( 'home/static/assets/js/html5shiv.js','js');
this.loadFile( 'home/static/assets/js/respond.min.js','js');
this.loadFile( 'home/static/assets/js/modernizr-latest.js','js');
this.loadFile( 'http://ajax.useso.com/ajax/libs/jquery/1.10.2/jquery.min.js','js');
this.loadFile( 'http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js','js');
this.loadFile( 'home/static/assets/js/jquery.cslider.js','js');
this.loadFile( 'home/static/assets/js/custom.js','js');

    }
}
</script>
<style  scoped>
  
</style>